import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getMaterial = {
    get_material_cate(params) {
        return axios.post(`${base.bd}/admin/source_material_cate/lists`, qs.stringify(params));
    },
    add_material_cate(params) {
        return axios.post(`${base.bd}/admin/source_material_cate/saveadd`, qs.stringify(params));
    },
    edit_material_cate(params) {
        return axios.post(`${base.bd}/admin/source_material_cate/saveedit`, qs.stringify(params));
    },
    del_material_cate(params) {
        return axios.post(`${base.bd}/admin/source_material_cate/del`, qs.stringify(params));
    },
    single_material_cate(params) {
        return axios.post(`${base.bd}/admin/source_material_cate/edit`, qs.stringify(params));
    },


    get_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/lists`, qs.stringify(params));
    },
    add_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/saveadd`, qs.stringify(params));
    },
    edit_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/saveedit`, qs.stringify(params));
    },
    del_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/del`, qs.stringify(params));
    },
    single_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/edit`, qs.stringify(params));
    },
    check_material_list(params) {
        return axios.post(`${base.bd}/admin/source_material/check`, qs.stringify(params));
    },

};
export default getMaterial;
